from DataFeeder.QueryQuote import FXRegister

class Asset:	

	def npv(self, ref_time, quote_type, currency = None):
	
		v = self.npv_in_local_currency(ref_time, quote_type)
		
		if currency:
		
			v *= FXRegister().get_quote(ref_time, self.currency(), currency)
		
		return v
		
	def npv_in_local_currency(self, ref_time, quote_type):
		pass
	
	@staticmethod	
	def type_name():
		pass
		
	def currency(self):
		pass	